/**
 * Carnegie Mellon University
 * School of Computer Science
 * MSIT eBusiness Technology
 * 
 * Team 8 - Infinity (2011 Spring)
 * infinity-team8@googlegroups.com
 * 
 * Professor: Jeffrey L. Eppinger
 * Program Faculty: Sujata Telang
 */

package databean;

import java.sql.Date;
import java.text.DecimalFormat;
import java.text.NumberFormat;

public class FundPriceHistoryBean implements Comparable<FundPriceHistoryBean> {
	
	private long	fundID		   = 0;
	private Date	priceDate	   = null;
	private long	price		   = 0;

	
	public FundPriceHistoryBean(long fundID, Date priceDate) {		
		this.fundID = fundID;
		this.priceDate = priceDate;
	}




	@Override
	public int compareTo(FundPriceHistoryBean o) {
		// TODO Auto-generated method stub
		return 0;
	}




	public long getPrice() {
		return price;
	}
    
	public String getFormatedPrice(){
		NumberFormat formatter = new DecimalFormat("##0.00");
		String s = formatter.format(((double)price/100));
		
		return s;

	}



	public void setPrice(long price) {
		this.price = price;
	}




	public long getFundID() {
		return fundID;
	}




	public Date getPriceDate() {
		return priceDate;
	}
	
}
